cpp
#include <iostream>
#include <fstream>
#include <vector>
#include <chrono>

void hello(std::vector<int>& a) {
    for (int i = 0; i < a.size() - 1; i++) {
        for (int b = 0; b < a.size() - i - 1; b++) {
            if (a[b] > a[b + 1]) {
                std::swap(a[b], a[b + 1]);
            }
        }
    }
}

int main() {
    std::vector<std::string> t = { "m1_sorted.txt", "m2_reverse.txt", "m3_shuffle.txt" };

    for (const std::string& file : t) {
        std::ifstream inputFile(file);
        std::vector<int> m;
        int number;

        while (inputFile >> number) {
            m.push_back(number);
        }

        auto start = std::chrono::high_resolution_clock::now();
        hello(m);
        auto end = std::chrono::high_resolution_clock::now();
        int w = std::chrono::duration_cast<std::chrono::milliseconds>(end - start).count();

        std::string fileName = file.substr(0, file.find('.'));
        std::cout << fileName << " " << w << " milliseconds" << std::endl;
    }

    return 0;
}
